package com.zy.utils.data;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;


//辅助下标
//计数排序 辅助下标
public class AssistPoint extends Point {


    public AssistPoint(Builder builder) {
        super(builder);
    }

    @Override
    protected void drawBackground(Canvas canvas, Paint paint) {
        //    public void drawRoundRect(Canvas canvas, Paint paint) {
        //        float x = getCenterX();
        //        float y = getCenterY();
        //        if (sorted) {
        //            paint.setColor(Color.GREEN);
        //        } else {
        //            paint.setColor(Color.BLUE);
        //        }
        //        canvas.drawRoundRect(x - per, y - per, x + per, y + per, per / 4, per / 4, paint);


        float x = getCenterX();
        float y = getCenterY();

        int old = paint.getColor();
        paint.setColor(Color.BLACK);
        canvas.drawLine(x - per, y - per, x + per, y - per, paint);
        paint.setColor(old);

    }
}
